/**
 * 
 */
package tp8.tsh;

import tp8.tsh.cli.TSH;
import tp8.tsh.cli.TSHInput;
import tp8.tsh.cli.TSHOutput;
import tp8.tsh.exc.TSHException;

/**
 * @author tpana
 *
 */
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		TSHInput in = new TSHInput();
		in.setIn(System.in);
		
		TSHOutput out = new TSHOutput();
		out.setOut(System.out);
		
		TSH tsh;
		try {
			tsh = new TSH(in, out, System.getProperty("user.home"));
			Thread thread = new Thread(tsh);
			thread.start();
		} catch (TSHException e) {
			e.printStackTrace();
		}
	}

}
